<if condition="$consultList">

    <volist name="consultList" id="v">
<div class="clearfix rewlist">
    <div class="col-xs-3 col-sm-2 col-md-1"><img src="{$v['head_pic']|default='__STATIC__/images/head_portrait.jpg'}" style="width:100%"></div>
    <div class="col-xs-9 col-sm-10 col-md-11">
        <p>{$v['username']} - {$v['add_time']|date="m/d/Y",###}</p>
        <p>{$v['content']}</p>
        <foreach name="replyList" item="v3" >
                <if condition="$v3['parent_id']  eq $v['id']">            
        <div class="answer">Answer : {$v3['content']}</div>
    </div>
       </if>    
            </foreach>
</div>
    </volist>  

    <div class="spxqer-bot">{$page}</div>
<script>
    // 点击分页触发的事件
    $("#ajax_consult_return .pagination  a").click(function(){
        cur_page = $(this).data('p');
         ajaxConsult(consult_type,cur_page);
    });
</script>

<else/>
 <p><strong>There are no entries.</strong></p>
</if>